/**
 * 
 */
package wangjg.game;

/**
 * @author wangjg
 *
 */
public class CollisionUtil {
	
	public static boolean is(int x, int y, Rect rect2){
		if(x>=rect2.x && x<=rect2.x+rect2.width && y>=rect2.y && y<=rect2.y+rect2.height){
			return true;
		}
		return false;
	}
	
}

class Rect{
	public int x,y,width,height;
}
